Skip to main content

segment

Type

keyword

Summary

Designates a space-delimited or quoted string as part of a chunk expression.

Syntax

segment

Description

Use the segment keyword to refer to one or more words in a container.

A segment is delimited by one or more spaces, tabs, or returns, or enclosed by double quotes. A single segment can contain multiple characters and multiple items, but not multiple lines.

note

Segments are delimited by double quotes ("), but not by curved quotes (“ or ”). LiveCode does not treat curved quotes as quotes.

Examples

get last segment of the long name of this stack

constant: space, tab, return

glossary: quoted, chunk expression, double quote, delimit

keyword: string, item, character, characters, lines, segments, sentence, trueWord, line, words, token, paragraph

Compatibility and Support

Introduced

LiveCode 7.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?